﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Remoting
{
    public interface IRemoteChannel<T> : IDisposable
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        string Login(string username, string password);

        /// <summary>
        /// 是否已经登录
        /// </summary>
        /// <returns></returns>
        bool IsLogin();

        /// <summary>
        /// 远程代理
        /// </summary>
        T RemoteProxy { get;}

        /// <summary>
        /// 登出
        /// </summary>
        void Logout();
    }
}
